package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_jb
 */
@TableName(value ="t_jb")
@Data
public class TJb implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer jbId;

    /**
     * 
     */
    private BigDecimal ky;

    /**
     * 
     */
    private BigDecimal jkPrice;

    /**
     * 
     */
    private String jkQx;

    /**
     * 
     */
    private String hkType;

    /**
     * 
     */
    private Date jkTime;

    /**
     * 
     */
    private Date hkTime;

    /**
     * 
     */
    private BigDecimal bqdh;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TJb other = (TJb) that;
        return (this.getJbId() == null ? other.getJbId() == null : this.getJbId().equals(other.getJbId()))
            && (this.getKy() == null ? other.getKy() == null : this.getKy().equals(other.getKy()))
            && (this.getJkPrice() == null ? other.getJkPrice() == null : this.getJkPrice().equals(other.getJkPrice()))
            && (this.getJkQx() == null ? other.getJkQx() == null : this.getJkQx().equals(other.getJkQx()))
            && (this.getHkType() == null ? other.getHkType() == null : this.getHkType().equals(other.getHkType()))
            && (this.getJkTime() == null ? other.getJkTime() == null : this.getJkTime().equals(other.getJkTime()))
            && (this.getHkTime() == null ? other.getHkTime() == null : this.getHkTime().equals(other.getHkTime()))
            && (this.getBqdh() == null ? other.getBqdh() == null : this.getBqdh().equals(other.getBqdh()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJbId() == null) ? 0 : getJbId().hashCode());
        result = prime * result + ((getKy() == null) ? 0 : getKy().hashCode());
        result = prime * result + ((getJkPrice() == null) ? 0 : getJkPrice().hashCode());
        result = prime * result + ((getJkQx() == null) ? 0 : getJkQx().hashCode());
        result = prime * result + ((getHkType() == null) ? 0 : getHkType().hashCode());
        result = prime * result + ((getJkTime() == null) ? 0 : getJkTime().hashCode());
        result = prime * result + ((getHkTime() == null) ? 0 : getHkTime().hashCode());
        result = prime * result + ((getBqdh() == null) ? 0 : getBqdh().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jbId=").append(jbId);
        sb.append(", ky=").append(ky);
        sb.append(", jkPrice=").append(jkPrice);
        sb.append(", jkQx=").append(jkQx);
        sb.append(", hkType=").append(hkType);
        sb.append(", jkTime=").append(jkTime);
        sb.append(", hkTime=").append(hkTime);
        sb.append(", bqdh=").append(bqdh);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}